import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/Welcome',
  },
  {
    path: '/Welcome',
    name: '欢迎页面',
    component: () => import('@/views/Welcome.vue'),
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
